package com.javasm.boot.oauth2.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.boot.oauth2.entity.OauthUser;
import com.javasm.boot.oauth2.entity.Response;
import com.javasm.boot.oauth2.entity.SystemUserInfo;
import com.javasm.boot.oauth2.entity.vo.UserInfoVO;
import com.javasm.boot.oauth2.entity.vo.UserVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author modebing
 * @since 2022-12-13
 */
@Service
public interface IUserService extends IService<OauthUser> {

    /**
     * @param userVO
     * @return
     */
    Response innerLogin(UserVO userVO);


    /**
     * 三方登录和系统内部登录都走此接口
     *
     * @param userInfo oauthUser
     * @return Response
     */
    Response login(SystemUserInfo userInfo);

    Response insertUserInfo(UserInfoVO userVO);
}
